package SocialNet;

import org.neo4j.graphdb.Direction;
import org.neo4j.graphdb.GraphDatabaseService;
import org.neo4j.graphdb.Node;
import org.neo4j.graphdb.Relationship;
import org.neo4j.graphdb.RelationshipType;
import org.neo4j.graphdb.Transaction;
import org.neo4j.graphdb.index.Index;
import org.neo4j.kernel.EmbeddedGraphDatabase;
import org.neo4j.kernel.impl.util.FileUtils;
import org.neo4j.cypher.*;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Iterator;
import java.util.Scanner;

public class QueryTest {
    static GraphDatabaseService graphDb;
    Index<Node> index;
    private static final String DB_PATH = "graphdb";
    private static Framework myFM;
    private static final String MALE = "Male";
    private static final String FEMALE = "Female";
    public static ArrayList<Person> person;

    public void createDB() {
        clearDB();
        graphDb = new EmbeddedGraphDatabase( DB_PATH );
        registerShutdownHook( graphDb );
    }

    private void clearDB() {
        try {
            FileUtils.deleteRecursively( new File( DB_PATH ) );
        } catch ( IOException e ) {
            throw new RuntimeException( e );
        }
    }

    public void shutDown() {
        graphDb.shutdown();
    }

    // START SNIPPET: shutdownHook
    private static void registerShutdownHook( final GraphDatabaseService graphDb ) {
        Runtime.getRuntime().addShutdownHook( new Thread() {
            @Override
            public void run() {
                graphDb.shutdown();
            }
        } );
    }

    public QueryTest() {
        System.out.println("start...");
        createDB();
        index = graphDb.index().forNodes("nodes");
        myFM = new Framework(graphDb, index);
        person = new ArrayList<Person>();
    }

    public static void addData() {
        person.add(myFM.createPerson("Liu, Bei", MALE));
        person.add(myFM.createPerson("Guan, Yu", MALE));
        person.add(myFM.createPerson("Zhang, Fei", MALE));
        person.add(myFM.createPerson("Cao, Cao", MALE));
        person.add(myFM.createPerson("Zhou, Yu", MALE));
        person.add(myFM.createPerson("Zhuge, Liang", MALE));
        person.add(myFM.createPerson("Huang, Yueying", FEMALE));
        person.add(myFM.createPerson("Sun, Shangxiang", FEMALE));
        person.add(myFM.createPerson("Xiaoqiao", FEMALE));
        person.add(myFM.createPerson("Diao, chan", FEMALE));

        person.get(0).addStatus("ã€�è¥¿æ±Ÿæœˆã€‘å�¤æœ‰æŒ‡é¹¿ä¸ºé©¬ï¼Œä»Šæœ‰æ�•çŠ¬ä½œç‹¼ã€‚å“ªç®¡å‡¶ç‹ ä¸Žå–„è‰¯ã€‚æ··æ·†ä¸¤å¹…æ¨¡æ ·ã€‚æ�¶ç‹¼å±±ä¸­æ¸¸èµ°ï¼Œä¹–çŠ¬å®¶å†…é�­æ®ƒã€‚ä¸“å®¶çœ¼åŠ›å¥½è�’å”�ï¼Œå¾’å¢žå¤šå°‘æ¯�è°¤ã€‚ ");
        person.get(0).addStatus("æœ‰è¿™ä¹ˆä¸€ç§�è�Œä¸šï¼Œå¹³å�‡å¯¿å‘½39å²�ã€�é�žæ­£å¸¸æ­»äº¡çŽ‡44%ã€�æ­»äº¡æ–¹å¼�å¤šç§�å¤šæ ·ï¼Œä½ ä¼šæ„¿æ„�å¹²å�—ï¼Ÿå¦‚æžœè°�å�šäº†ï¼Œè‚¯å®šä¼šè¢«åˆ«äººè®¤ä¸ºå¤§è„‘è¿›æ°´äº†ã€‚ä½†åŽ†å�²ä¸Šè¿˜çœŸæœ‰è¿™ä¹ˆä¸€ä¸ªè�Œä¸šï¼Œæ‚²æƒ¨ç¨‹åº¦æƒŠå¤©åœ°æ³£é¬¼ç¥žï¼Œä½†äººäººæŠ¢ç�€å¹²ï¼Œå› ä¸ºå®ƒæœ‰ä¸€ä¸ªå�Žä¸½çš„å��å­—ï¼šçš‡å¸�ã€‚ ");
        person.get(0).addStatus("åˆ˜é‚¦å“­ä¹‰å¸�ä»¥å½°é¡¹ç¾½æ®‹æš´ï¼›åˆ˜å¤‡å¥‰æ±‰å®¤ä»¥æ˜¾æ›¹æ“�å¥¸ä¼ªã€‚ä¸€è€…è§�æœºè¡Œäº‹ï¼Œä¸€è€…å€ŸåŠ¿è€Œèµ·ã€‚åˆ˜é‚¦æ‹œéŸ©ä¿¡æ˜¯ä»¥å��åˆ©å™¨ä¹‹ï¼›åˆ˜å¤‡è¯·å­”æ˜Žæ˜¯ä»¥è¯šå¿ƒæ„Ÿä¹‹ã€‚ä¸€è€…å–„ç»“æ�©ï¼Œä¸€è€…å–„å�–ä¿¡ã€‚æ•…åˆ˜å¤‡æœ‰é«˜ç¥–ä¹‹å–»ä¹Ÿã€‚ç„¶é¡¹ç¾½å�ªä»—åŒ¹å¤«ä¹‹å‹‡ï¼Œæ›¹æ“�å�¯ç¬¼çŽ‹ä½�ä¹‹æ‰�ã€‚å­”æ˜Žæœ‰è�§ä½•ä¹‹æ²»è€Œå°‘å¼ è‰¯ä¹‹è¯¡ï¼Œå…³å¼ æœ‰æ¨Šå“™ä¹‹å‹‡è€Œä¹�éŸ©ä¿¡ä¹‹ç•¥ã€‚æ•…åˆ˜");
        person.get(0).addStatus("ã€Šæ°´æµ’ã€‹å¤šå†™å¥³å­�ä¹‹è�¡ï¼Œã€Šè¥¿æ¸¸ã€‹å¤šè¯‰å¥³å­�ä¹‹å¦–ï¼Œå”¯ã€Šä¸‰å›½ã€‹èƒ½è¡¨å¥³å­�ä¹‹çƒˆã€‚ç³œæ°�æ­»å…¶å­�æ˜¯ä¸ºæŠ¥å…¶å¤«ï¼›å¾�æ¯�æ­»å…¶å­�æ˜¯ä¸ºå¿ å…¶å�›ã€‚æ­»æœ‰æ‰€æ��ï¼Œæ­»å¾—å…¶æ‰€ï¼Œæ­¤èƒœä¹Œé¾™é™¢ã€�ç‹®å­�æ¥¼æ•°æ¡©è¡€æ¡ˆã€‚æœˆè‹±å«�å­”æ˜Žæ˜¯æ€�å�›å­�ï¼›å°šé¦™å«�çŽ„å¾·æ˜¯æ…•è‹±é›„ï¼Œçˆ±æœ‰æ‰€ç»ˆï¼Œçˆ±å¾—å…¶æ‰€ï¼Œæ­¤èƒœå¥³å„¿å›½ã€�æ— åº•æ´žå‡ æ®µå­½ç¼˜ã€‚å�ˆå¦‚è²‚è�‰ç”„å§¬ï¼Œæ”¾è�¡ä¹‹ä¸­è§�æ�ƒè°‹ï¼Œå¦–åªšä¹‹ä¸­ç�¹æ‰�æƒ…ï¼Œã€Šä¸‰å›½ã€‹å�¯å½“çƒˆå¥³ä¸Žè±ªå£«ä¹‹å�ˆä¹¦çŸ£ã€‚ ");
        person.get(0).addStatus("æˆ‘è‹¥é�‡è§�é«˜ç¥–åˆ˜é‚¦ï¼Œå°±å½“ä½œä»–çš„è‡£ä¸‹ï¼Œä¸ŽéŸ©ä¿¡ã€�å½­è¶Šä¸€èµ·äº‰å…ˆä¸ºä»–æ•ˆåŠ›ï¼›è‹¥é�‡è§�å…‰æ­¦å¸�åˆ˜ç§€ï¼Œæˆ‘å°±ä¼šä¸Žä»–å¹¶é©±ä¸­åŽŸï¼Œä¸�çŸ¥é¹¿æ­»è°�æ‰‹ã€‚å¤§ä¸ˆå¤«è¡Œäº‹ï¼Œåº”è¯¥ç£Šç£Šè�½è�½ï¼Œå¦‚æ—¥æœˆçšŽæ´�ï¼Œç»�ä¸�å�¯ä»¥åƒ�æ›¹å­Ÿå¾·ã€�å�¸é©¬ä»²è¾¾çˆ¶å­�é‚£æ ·æ¬ºè´Ÿå­¤å„¿å¯¡å¦‡ï¼Œç‹�åªšå¤ºå�–å¤©ä¸‹ã€‚");
        person.get(0).addStatus("æ›¹æ“�æŠ¥çˆ¶ä»‡æœªæžœï¼Œä¸�å¾—ä¸ºå­�å­�ï¼›åˆ˜å¤‡æŠ¥å¼Ÿä»‡æœªæˆ�ï¼Œä¸�å¤±ä¸ºä¹‰å…„ã€‚æ�Žè‚ƒè¯´å�•å¸ƒï¼Œæ˜¯ä»¥æ™ºæµŽå…¶æ�¶ï¼›çŽ‹å…�è¯´å�•å¸ƒï¼Œæ˜¯ä»¥å·§è¡Œå…¶å¿ ã€‚ä»²è¾¾å…«æ—¥å�–ä¸Šåº¸ï¼Œæ˜¯ä»¥é€Ÿä¸ºèƒœï¼›éƒ­å˜‰é�—è®¡å®šè¾½ä¸œï¼Œæ˜¯ä»¥ç¼“ä¸ºèµ¢ã€‚æ™®å‡€è´£å…³ç¾½æ˜¯ç‚¹åŒ–æ­¦åœ£ï¼›å·¦æ…ˆæˆ�æ›¹æ“�æ˜¯åŠ�è¯«å¥¸é›„ã€‚éƒ­å˜‰æ–™å­™ç­–ä¹‹æ­»ï¼Œæ˜¯æ·±è¾ƒå…¶æ€§ï¼›åˆ˜å¤‡æ–™é©¬è°¡ä¹‹è´¥ï¼Œæ˜¯è¿œè§�å…¶èƒ½ã€‚ã€Šä¸‰å›½ã€‹ä¸€ä¹¦ï¼Œæœ‰å¥‡å³°å¯¹æ�’ï¼Œé”¦å±�å¯¹å³™ä¹‹åŠŸã€‚");
        person.get(0).addStatus("å­™ç­–å¹³å®šæ±Ÿä¸œæ—¶ï¼Œå¤œæ¢¦å…‰æ­¦ï¼Œæ­¤ä½•å…†ä¹Ÿï¼Ÿåˆ˜ç§€éš�å…„å��çŽ‹èŽ½ï¼Œå­™æ�ƒéš�å…„å¹³æ±Ÿä¸œã€‚å› åˆ˜æ¼”ä¹‹æ­»ï¼Œåˆ˜ç§€å¾—æˆ�å¸�ä¸šï¼›å› å­™ç­–ä¹‹æ­»ï¼Œå­™æ�ƒèƒ½ä»¥é¼Žè¶³ã€‚å…„ä¼ å¼Ÿå‘½ï¼Œå¼Ÿç»­å…„å¿—ï¼Œä¸¤è€…ç›¸å�Œã€‚åˆ˜ç§€ç§°å¸�æ—¶ï¼Œè¿½è°¥åˆ˜æ¼”ä¸ºé½�æ­¦çŽ‹ï¼›å­™æ�ƒç§°å¸�æ—¶ï¼Œè¿½è°¥å­™ç­–ä¸ºé•¿æ²™æ¡“çŽ‹ã€‚å¼Ÿæˆ�å¸�ä¸šï¼Œå…„è°¥çŽ‹çˆµï¼Œä¸¤è€…äº¦ç›¸å�Œã€‚å­™ç­–ä¸¾äº‹ä¹‹åˆ�ï¼Œä¾¿æ¢¦å…‰æ­¦ï¼Œå¸�ä¸šä¹‹å…†åº”åœ¨å­™æ�ƒã€‚ã€Šä¸‰å›½ã€‹ä¸€ä¹¦ï¼Œæœ‰åŸ‹æ–‡ä¼�ç¬”ä¹‹å¦™ã€‚ ");
        person.get(0).addStatus("æ¡ƒå›­å…„å¼Ÿï¼Œç»“å¼‚å§“å¦‚éª¨è‚‰ã€‚è¢�æ°�å…„å¼Ÿï¼Œè§†å�Œèƒžä¸ºä»‡æ•Œã€‚ä¸€è€…æˆ�äº‹ï¼Œä¸€è€…è´¥äº¡ã€‚å­™å�šä¸¤å­�ï¼Œä»¥å…„ä¼ å¼Ÿï¼Œä»¥å¼Ÿç»­å…„ã€‚åˆ˜è¡¨äºŒå­�ï¼Œä»¥å…„é€ƒå¼Ÿï¼Œä»¥å¼Ÿæ‹’å…„ã€‚ä¸€è€…æ±Ÿä¸œåˆ¶éœ¸ï¼Œä¸€è€…è�†å·žæ˜“ä¸»ã€‚å§‹ä¿¡å�Œå¿ƒå�Œå¾·æ–¹èƒ½æˆ�å°±å¸�ä¸šã€‚è§‚è¢�æ°�å†…ä¹±ï¼Œè¢�ç»�è¢�æœ¯ç›¸å·¦äºŽå‰�ï¼Œè¢�è°­è¢�å°šç›¸äº‰äºŽå�Žã€‚ä»¥è‡ªå®¶ä¹‹çŸ›ç›¾ï¼Œæˆ�æ•Œäººä¹‹åˆ©ç›Šï¼Œå�²ä¹¦å¾’å¢žç¬‘æ–™å°”ã€‚");
        person.get(0).addStatus("åˆ˜å¤‡ç™½æ‰‹èµ·å®¶ï¼Œç»ˆå¾—å‰²æ�®ï¼Œå‰�å�Žå¥‹æ–—40è½½ï¼Œä¸–äººçš†ç§°æž­é›„ï¼Œå�ˆä»¥ä»�ä¹‰è¢«å�Žä¸–èµžé¢‚ã€‚ä½†åˆ˜å¤‡ä¸€ç”Ÿçš„ä»�ä¹‰ä¹Ÿç»�åŽ†äº†ä»Žå¹¼ç¨šåˆ°æˆ�ç†Ÿçš„è¿‡ç¨‹ï¼šå‰�æœŸçƒ­è¡€ï¼Œä»¥å�µå‡»çŸ³æ•‘å¾�å·žï¼›å�ŽæœŸè€�è¾£ï¼Œç�«ä¸­å�–æ —æ”¶å·�èœ€ã€‚ä»�ä¹‰æ˜¯åˆ˜å¤‡çš„é�“å¾·åº•çº¿ä¸Žå�šå¼ˆèµ„æœ¬ï¼Œæ›´æ˜¯ä¸€ç§�æ”¿æ²»æ‰‹æ®µï¼›ä½†ä»�ä¹‰å¹¶ä¸�æ˜¯è§£è¯»åˆ˜å¤‡çš„å”¯ä¸€æ–¹å¼�ï¼›å�šéŸ§ï¼Œè¯†äººï¼Œä»¥å�Šé¢†å¯¼çš„äººæ ¼é­…åŠ›ï¼Œå››ä½�ä¸€ä½“æ‰�æž„æˆ�ä»–äººç”Ÿè¾‰ç…Œçš„é“ºåž«ã€‚ ");
        person.get(0).addStatus("å­™å�šåŒ¿çŽ‰çŽºè€Œèº«äº¡ï¼Œå­™ç­–å¤±çŽ‰çŽºè€Œç§°éœ¸ã€‚çŽ‹ä¸šä¹‹åŸºï¼Œåœ¨æ°‘åœ¨åŠ¿ï¼Œä¸�åœ¨çŽ‰çŽºä¹‹å��ï¼Œå�¯çŸ¥å­™ç­–è‹±é›„èƒœè¿‡å…¶çˆ¶ã€‚å­™æ�ƒæ™šå¹´å´‡ä¿¡é¬¼ç¥žè€Œä¹±æ”¿ï¼Œç„¶å­™ç­–èƒ½æ–©äºŽå�‰ä»¥ç»�å¦–è¨€ã€‚é¼Žè¶³ä¹‹å…†ï¼Œåœ¨åŠŸåœ¨å¾·ï¼Œä¸�åœ¨é¬¼ç¥žä¹‹ä½‘ï¼Œå�¯çŸ¥å­™ç­–è‹±æ˜Žèƒœè¿‡å…¶å¼Ÿã€‚ä¸–äººçš†ä»¥å­™ç­–æ¯”é¡¹ç¾½ï¼Œéœ¸çŽ‹æ— é¢œè§�æ±Ÿä¸œï¼Œè€Œå°�éœ¸çŽ‹å¤�å½’æ±Ÿä¸œï¼Œè‹¥ä»¥å­™å�šèƒ½æ¯”é¡¹æ¢�ï¼Œå¤§ä¹”å�¯æ¯”è™žå§¬ä¹Žï¼Ÿ ");

        person.get(1).addStatus("å¤§å“¥æ˜¯å…¥ä¸–çš„æ­Œè€…å’Œè¯—äººï¼Œä»–ä¸�å–œé¥®é…’ï¼Œä½†æ¯�æ¬¡é…’å�Žçš„è¯�éƒ½ä¼šæ·±æ·±å‡»æ‰“æˆ‘çš„å¿ƒç�µã€‚å�Žæ�¥ï¼Œæˆ‘å› å¾·è¡Œæ˜­å½°ï¼Œæ­»çš„å…¶æ‰€è€Œå¥‰ç¥žå–»åœ¨å…­é�“é£žç¿”ï¼Œå¾—ä»¥å�‘çŽ°è¿™ç±»äººæ·±æ²‰è€Œè¿·äººçš„æ‚²å“€ã€‚ ");
        person.get(1).addStatus("è½¬è‡ªåˆ˜å¤‡:å�¤ä»Šå��å°†å¦‚äº‘ï¼Œè€Œç»�ä¼¦è¶…ç¾¤è€…ï¼ŒèŽ«å¦‚äº‘é•¿ã€‚é�’ç�¯å¯¹é�’å�²ï¼Œæž�å…¶å„’é›…ï¼›èµ¤å¿ƒå¦‚èµ¤é�¢ï¼Œæž�å…¶è‹±ç�µã€‚æŠ¥ä¸»å¿—å�šï¼Œå ªå½“äºŒå­—å¿ ä¹‰ã€‚é…¬æ�©è°Šé‡�ï¼Œå�¯æŠµä¸€éƒ¨æ˜¥ç§‹ã€‚ä½œäº‹å¦‚é�’å¤©ç™½æ—¥ï¼Œå¾…äººå¦‚éœ�æœˆå…‰é£Žã€‚å�•åˆ€èµ´ä¼šï¼Œæ�°ä¼¼é˜®ç±�ç™½çœ¼ä¹‹å‚²ç‰©ï¼›å�ƒé‡Œç‹¬è¡Œï¼ŒçŠ¹å¦‚åµ‡åº·å¹¿é™µä¹‹ç»�å“�ã€‚æ–‡æ­¦æ‰�æƒ…å¿ ä¹‰èƒ†ï¼Œè‹±é›„é�¢è²Œåœ£è´¤å¿ƒã€‚äº‘é•¿çœŸå�¤ä»Šå��å°†ä¸­ç¬¬ä¸€å¥‡äººã€‚");
        person.get(1).addStatus("å¥½æ±Ÿé£Žï¼Œå°†è¿™è½»èˆŸå‚¬é€�ï¼Œæ³¢ç¿»æµªæ¶Œï¼Œæ·»å‡ åˆ†å£®å¿—è±ªæƒ…ã€‚é¾™æ½­è™Žç©´ä½•è¶³æƒ§ ï¼Œå‰‘æˆŸä¸›ä¸­ä¹…é�–å…µã€‚é�žæ˜¯ä¿ºè—�ç¾¤é›„ï¼Œä¸€éƒ¨æ˜¥ç§‹é“­è®°ã€‚ä¹‰ä¸�è´Ÿå¿ƒæ³°å±±é‡�ï¼Œå¿ ä¸�é¡¾æ­»ä½•è¨€è½»ã€‚æ¡ƒå›­é‡‘å…°èª“ï¼Œå¼Ÿå…„å±±æµ·ç›Ÿã€‚æ—©æŠŠè¿™ä¸ƒå°ºèº«èº¯é�’é¾™å�ƒæœˆ ä»˜ä¸Žè‹�ç”Ÿï¼� ");
        person.get(1).addStatus("è°�è¯´è‹±é›„æ— æ�¨ è¡€æŸ“éº¦åŸŽåŒ–å¿ é­‚ ä¸�è´Ÿèœ€æ±‰ äº¦ä¸�è´Ÿæ­¤èº« æ�¥ä¸–å†�ç»­æ¡ƒå›­æ˜¥è°�è¯´è‹±é›„æ— æ�¨ å¿ é­‚æ¨ªåˆ€ä»°å¤©é—® å¯’é¸¦ç»•æœ¨ ç©ºå±±å“�æ‚²éŸ³ ç»“ä¹‰è±ªæƒ…å£®éš¾ä»» ");
        person.get(1).addStatus("å��ä¸ºå�›è‡£ï¼Œæ�©è‹¥å…„å¼Ÿï¼Œæƒ…å¦‚çˆ¶å­�ï¼Œæ•ŒåŠ¿å²‚èƒ½é€šå©šï¼Œæ­¤ä¸€èº«å�¯æ­£äº”ä¼¦ï¼›ä¹‰è�šæ¡ƒå›­ï¼Œé“­è®°æ˜¥ç§‹ï¼Œå¨�éœ‡å�Žå¤�ï¼Œå�‹äººè¿˜å½“æŠ¥æ•ˆï¼ŒåŽ†ä¸‰å›½å·²ç¥€å�ƒç§‹ã€‚ ");
        person.get(1).addStatus("è„šèƒ¯èµ¤å…”ï¼Œæ‰‹èˆžé�’é¾™ï¼Œèº«æŠ«ç»¿è¢�ï¼Œç™½çœ¼å‚²æ�ƒè´µï¼Œå¤©ä¸‹å¿ å¥¸ä¸¤åˆ¤ï¼›åŠ¿æŠµåŒ—é­�ï¼Œæ°”åŽ‹ä¸œå�´ï¼Œé­‚å½’è¥¿èœ€ï¼Œå�—éƒ¨æ‹œè�†çŽ‹ï¼Œå�¤ä»Šä¸­æ­£ä¸€äººã€‚ ");
        person.get(1).addStatus("è¯†è€…è§‚æ—¶ï¼Œå½“è¥¿èœ€æœªæ”¶ã€�æ˜­çƒˆå°šæ— å°ºåœŸï¼Œæ“�è™½æ±‰è´¼ã€�çŠ¹æ˜¯æœ�è‡£ï¼Œè‡³ä¸€å��å…«éª‘èµ°å�Žå®¹ï¼ŒåŠ¿æ–¹ç©·ä¿ƒï¼Œè€Œæ…¨é‡Šé�žå¾’æŠ¥å¾·ï¼Œç¥—ç¼˜æ€¥å›½è®¡è€Œç¼“å¥¸é›„ï¼Œå�ƒå�¤æœ‰è°�å…±ç™½ï¼Ÿå�›å­�å–»ä¹‰ï¼Œæ�¨ä¸œå�´å‰²æ�®ã€�åˆ˜æ°�å·²å¤±å��éš…ï¼Œæ�ƒå�³äººè±ªã€�è®µåº”æŠ—ä¸»ï¼Œä»¥å…«å��ä¸€å·žç§°æ•Œå›½ï¼Œç½ªå®žå�—é€ƒï¼Œè€Œæ‹’å©šå²‚æ›°éª„çŸœï¼Œæ˜Žç¤ºç»�å¼ºæ�´ä»¥å°ŠçŽ‹å®¤ï¼Œå¯¸å¿ƒå�ªåœ¨è‡ªçŸ¥ï¼� ");
        person.get(1).addStatus("å�•åˆ€çŠ¯å�´å¢ƒï¼Œé˜´è°‹å¤«å­�ï¼Œå�ªçŸ¥æ‰¶æ±‰å®¤ï¼›å°ºåœŸçš†åˆ˜å®¶ï¼Œæ—§ç‰©ä½¿å�›ï¼Œä½•è°“å€Ÿè�†å·žï¼Ÿ ");
        person.get(1).addStatus("å�²å®˜è¯„æˆ‘æ›°è¡¿ï¼Œè°¬çŸ£ï¼�è§†å�´é­�è¯¸äººï¼ŒåŽŸå�Œå­ºå­�ï¼›å�Žä¸–å°Šå�¾ä¸ºå¸�ï¼Œæ•¢ä¹Žï¼�è®ºæ˜¥ç§‹å¤§ä¹‰ï¼Œç»ˆæ˜¯æ±‰è‡£ã€‚ ");

        person.get(2).addStatus("æ‰€ä»¥ä¿ºæœ€æ�¨äººè¯´ä¿ºèŽ½æ’žæ— è„‘è½¬è‡ªè‘£å�“:å¾ˆå¤šäººç®¡è€�å¤«å�«èƒ–å­�ï¼Œè€�å¤«ä¸�ä»‹æ„�ã€‚å¯¹äºŽç”·äººæ�¥è¯´ï¼Œç›¸æ¯”å‚»ï¼Œä»–ä»¬å®�æ„¿åˆ«äººè¯´ä»–ä»¬èƒ–ï¼›å¯¹äºŽå¥³äººæ�¥è¯´ï¼Œç›¸æ¯”èƒ–ï¼Œå¥¹ä»¬å®�æ„¿åˆ«äººè¯´å¥¹ä»¬å‚»ã€‚ ");
        person.get(2).addStatus("ä¿ºå�ˆä½•å°�ä¸�æƒ³ä»—å‰‘è¡Œå¤©æ¶¯ï¼Ÿæ‰¾ä¸ªå¥½åŽ»å¤„ï¼Œå–�å‡ å£¶é…’ï¼Œå�šå‡ å¹…ç”»ï¼Œä¸Žè´¤äººç•…è°ˆï¼Œå²‚ä¸�å¿«å“‰ï¼Ÿ ");
        person.get(2).addStatus("é‚£å¹´æˆ‘ä»¬ä¸‰äººè¿˜åœ¨æ¡ƒå›­å–�é…’è½¬è‡ªç‡ŽåŽŸç�«: é‚£å¹´æˆ‘è¿˜åœ¨å�¸é©¬å®¶ã€‚è½¬è‡ªåˆ˜ç¦…: é‚£å¹´æˆ‘è¿˜è‡ªç§°ä¸ºæœ•~~è½¬è‡ªè‘£å�“: é‚£å¹´ï¼Œæˆ‘è¿˜å¿ƒç³»ç�€å¤©ä¸‹è‹�ç”Ÿã€‚è½¬è‡ªæ›¹æ¤�: é‚£å¹´ï¼Œæˆ‘è¿˜ä¸�ä¼šå–�é…’ã€‚è½¬è‡ªé»„æ‰¿å½¦:é‚£å¹´ï¼Œå¤©ä¸‹è¿˜æ²¡æœ‰å¤§ä¹±ã€‚");
        person.get(2).addStatus("ä»Šå¤œæœˆé£Ÿï¼Œä¸Žå¤§å“¥äºŒå“¥åŽ»èµ�æœˆï¼Œä¼—å°†å£«å�¯æ„¿ç›¸éš�ï¼Ÿ ");
        person.get(2).addStatus("ä»Šæ—¥å¤©å¯’ï¼Œå�„ä½�å°†å£«æ³¨æ„�é˜²å¯’ä¿�æš–å•Š ");
        person.get(2).addStatus("ä¿ºåœ¨ä¸‡å†›ä¹‹ä¸­å�–æ•Œä¸Šå°†é¦–çº§å¦‚æŽ¢å›Šå�–ç‰©");
        person.get(2).addStatus("ç›Ÿä¸»ï¼Œä¿ºæœ‰ç¥žå‹‡äºŒå“¥ï¼Œå�¯æ–©å�Žé›„");
        person.get(2).addStatus("äºŒå“¥ï¼Œå•¥æ—¶åŽ»å–�é…’ï¼Ÿ");
        person.get(2).addStatus("ä¿ºæƒ³çŸ¥é�“ä½ åˆ°åº•å�‘ç�€è°�ï¼Ÿå�¸é©¬å®¶ï¼Ÿè¿˜æ˜¯æˆ‘å¤§å“¥ï¼Ÿ");
        person.get(2).addStatus("å­�ç›´åˆ«æ�¥æ— æ�™å•Š");
        person.get(2).addStatus("å¤§å“¥ï¼Œå•¥æ—¶åŽ»å–�é…’ï¼Ÿ");
        person.get(2).addStatus("é‚£å¹´æˆ‘ä»¬ä¸‰äººè¿˜åœ¨æ¡ƒå›­å–�é…’");

        person.get(3).addStatus("æ¸…æ˜Žæ—¶èŠ‚é›¨çº·çº·ï¼Œé€�åŽ»ä¹‹äººå‡ºé¬¼é—¨ã€‚æ¬²é—®é»„çº¸ä½•å¤„åŽ»ï¼Œé“œé›€å�°å‰�å�Šå�›é­‚ã€‚ ");
        person.get(3).addStatus("æ–¹ä»Šæ—©æ˜¥ï¼Œä¸‡ç‰©ç”Ÿå�‘ï¼ŒæŸ³èŠ½æ–°è�Œï¼Œæ­£å®œæ—©ç�¡æ—©èµ·ï¼Œå‹¤è¯»å‡»å‰‘ï¼Œä»¥å¾…å¤©æ—¶ï¼�å¤§ä¸ˆå¤«æ›°ï¼šå¤©é«˜åœ°å¹¿ï¼Œä»»æˆ‘é©°éª‹ï¼� ");
        person.get(3).addStatus("é¾™èƒ½å¤§èƒ½å°�ï¼Œèƒ½å�‡èƒ½éš�ï¼›å¤§åˆ™å…´äº‘å��é›¾ï¼Œå°�åˆ™éš�ä»‹è—�å½¢ï¼›å�‡åˆ™é£žè…¾äºŽå®‡å®™ä¹‹é—´ï¼Œéš�åˆ™æ½œä¼�äºŽæ³¢æ¶›ä¹‹å†…ã€‚æ–¹ä»Šæ˜¥æ·±ï¼Œé¾™ä¹˜æ—¶å�˜åŒ–ï¼ŒçŠ¹äººå¾—å¿—è€Œçºµæ¨ªå››æµ·ã€‚é¾™ä¹‹ä¸ºç‰©ï¼Œå�¯æ¯”ä¸–ä¹‹è‹±é›„ã€‚å�‡è…¾ä¸‡é‡Œï¼Œå…´äº‘å��é›¾ï¼Œä¸�å¿˜è‰¯å¿ƒè¯šä¿¡ï¼›å°�éš�è—�è¡Œï¼Œè—�äºŽæ³¢æ¶›ä¹‹ä¸‹ï¼Œå¿ƒå¿§ç™¾å§“ç”Ÿæ´»ï¼�è‹±é›„æ›°ï¼šâ€œäººå¿ƒä¸�å�¤â€� ");
        person.get(3).addStatus("æœ‰äººè°“å­Ÿå¾·ä¸�é€šå­”å­Ÿä¹‹é�“ï¼�å­”å­Ÿä¹‹é�“é�žä¸�å¥½ï¼Œå�ªæ˜¯å”¯ç‹¬ä¸�å�¯ç”¨æ�¥å¼€å›½ï¼�äººç”Ÿç™¾æ€�ï¼Œå½¢å½¢è‰²è‰²ï¼Œæœ‰äººæ¸©å’Œï¼Œæœ‰äººè±ªè¿ˆï¼Œæœ‰äººè°†è°†æ•™å¯¼ï¼Œå¥½ä¸ºäººå¸ˆï¼›æœ‰äººå�£ä¸�è¨€åœ£ï¼Œç„¶å�šæ¯…èµ°è„šä¸‹è·¯.............. ");
        person.get(3).addStatus("ç››ä¸–å�¤è‘£ï¼Œä¹±ä¸–é»„é‡‘ï¼�ç”±ä¿­å…¥å¥¢æ˜“ï¼Œç”±å¥¢å…¥ä¿­éš¾ï¼�è‹¥ç»�æµŽæŒ�ç»­ä½Žè¿·ï¼Œåˆ‡å¿Œå‹¿æµªè´¹ï¼� ");
        person.get(3).addStatus("è„¸è‰²éš¾çœ‹ï¼Œèµ�ç½šä¸�æ˜Žï¼Œæœ‰æ�¶ä¸�é™¤ï¼Œä»»äººå”¯äº²ï¼Œæ­¤é¢†å¯¼è€…ä¹‹å¤§æ‚£ä¹Ÿï¼� ");
        person.get(3).addStatus("è§‚ä¸‰å›½ï¼Œæ–°äººçœ‹è®¡ç­–ï¼Œåˆ°äº†ä¸€å®šçš„å¢ƒç•Œï¼Œåˆ™è§‚ï¼šåŠ¿ä¸Žé�“ï¼� ");

        person.get(4).addStatus("(æƒŠæ��)ä¼¯ç¬¦ä¸�è¦�å†²åŠ¨å•Šï¼�å�¦åˆ™å�Žå¤©ä½ å°±è¦�è¿‡æ¸…æ˜Žå•¦ï¼�(ä½�å˜´)è½¬è‡ªå­™ç­–:ä¸ºäº†é˜²æ­¢ä»Šå¤©å¤§å®¶ä¸Šå½“å�—éª—ï¼Œæˆ‘æŠŠäºŽå�‰æ�€äº†ï¼�(é…·) ");
        person.get(4).addStatus("ç¥�æˆ‘æ±Ÿä¸œå…¨ä½“å¦‡å¥³èŠ‚æ—¥å¿«ä¹�~å…¬ç‘¾åº”æ™¯å¼¹å¥�ä¸€æ›²ï¼Œå¤§å®¶æƒ³å�¬ä»€ä¹ˆï¼Ÿ(rs) ");
        person.get(4).addStatus("è§£ä½©ä¸´æ¸…æ± ï¼ŒæŠšç�´çœ‹ä¿®ç«¹ã€‚æ­¤æ€€è°�ä¸Žå�Œï¼Œæ­¤ä¹�å�›æ‰€ç‹¬ã€‚ ");
        person.get(4).addStatus("ä¼¯ç¬¦å•Šä½ é‚£è„¸éƒ½åŒ…æˆ�è¿™æ ·äº†ï¼Œå°±åˆ«å†�æ‘†å‡ºç†Šå­©å­�çš„æ®‹å¿µè„¸äº†ã€‚ ");
        person.get(4).addStatus("ç­‰ä½ è¿™å�¥è¯�å·²ç»�å¾ˆä¹…äº†ã€‚å‰�è¿›å�§ï¼�ä¼¯ç¬¦ï¼�è½¬è‡ªå­™ç­–:ç­–å·²å›žå½’ï¼Œè¯¸ä½�ä¹…ç­‰ï¼�å…¬ç‘¾ï¼Œè¿™å‰¯æ–°æˆ˜ç”²ä½ è¿˜æ»¡æ„�å�¦ï¼�ä¸Žæˆ‘ä¸€èµ·å¼€åˆ›å­™å®¶çš„éœ¸ä¸šå�§ï¼� ");
        person.get(4).addStatus("è¦�è¯´ä¸‰å›½å†›äº‹èƒ½åŠ›ç¬¬ä¸€äººï¼Œå…¬ç‘¾è®¤ä¸ºé�žæ›¹ä¸žç›¸èŽ«å±žï¼Œè™½ç„¶å…¬ç‘¾å‡­å¤©æ—¶åœ°åˆ©äººå’Œåœ¨èµ¤å£�å‡»è´¥è¿‡ä¸žç›¸ï¼Œä½†æ˜¯å…¬ç‘¾ä¾�æ—§ä½©æœ�ã€‚ ");
        person.get(4).addStatus("æ¬¢è¿Žå¤«äººå°�ä¹”å…¥é©»äººäººç½‘ï¼� ");
        person.get(4).addStatus("ä¸€ä¸ªä¼Ÿå¤§çš„å¤©æ‰�å°†é¢†ï¼Œä¸€ä¸ªå­¤ç«‹çš„é�“å¾·æ ‡æ�†ï¼Œåˆ°å¤´æ�¥è¿˜è¦�è¢«å°�è¯´å¼‚åŒ–æˆ�ç¼ºç‚¹æ˜Žæ˜¾çš„äººç‰©ï¼Œæ–¹è¢«ä¿—ä¸–çš„äººä»¬æŽ¥çº³ã€‚è‹¥æ˜¯ä»–çš„ç¥žç�µæœ‰çŸ¥ï¼Œä¹Ÿä¸�çŸ¥å¯¹æ­¤ä¼šæŒ�ä½•æ„Ÿæƒ³ï¼Ÿ ");
        person.get(4).addStatus("ä»–é�“å¼•é©¬ç¬‘è‹�å¤©ï¼Œèµ¤å£�çƒ½çƒŸå�—éƒ¡ç®­ï¼Œå½’å¿˜å·�ï¼Œä¸‡é‡Œæ²³å±±å†�ä¸€æˆ˜ï¼Œç›¸æ€�è‹¦ï¼Œä¸�è¿‡å��å¹´ã€‚ ");
        person.get(4).addStatus("ä»Šå¤©çª�ç„¶å�‘çŽ°å¤šäº†å¥½å¤šç‘œç²‰ï¼Œæ„Ÿè°¢å¤§å®¶çš„æ”¯æŒ�ï¼�ä¹Ÿæ„Ÿè°¢ä¸‰å›½æ�€ä¸»é¡µè�Œçš„å®£ä¼ ï¼�=3= ");
        person.get(4).addStatus("å¤§ä¹”æ�¥äº†~å°�ä¹”è¿˜ä¼šè¿œä¹ˆ~ ");

        person.get(5).addStatus("è�‰åº�å½“æ—¥æ¥¼æ¡‘ï¼Œä»»è™Žæˆ˜ä¸­åŽŸï¼Œé¾™å�§å�—é˜³ã€‚å…«é˜µå›¾æˆ�ï¼Œä¸‰åˆ†å›½å³™ï¼Œä¸‡å�¤é¹°æ‰¬ã€‚ã€Šå‡ºå¸ˆè¡¨ã€‹è°‹è°Ÿåº™å ‚ï¼Œã€Šæ¢�ç”«å�Ÿã€‹æ„Ÿå�¹å²©å»Šã€‚æˆ�è´¥éš¾é‡�ï¼Œäº”ä¸ˆç§‹é£Žï¼Œè�½æ—¥è‹�èŒ«ã€‚ ");
        person.get(5).addStatus("å°�å¿�æ˜¯ä¿®å…»ï¼Œå¤§å¿�æ˜¯æ·±è°‹ã€‚ ");
        person.get(5).addStatus("äººä¹‹ä¸‰æ‚”ï¼Œé�‡è‰¯å¸ˆè€Œä¸�å­¦ï¼Œé�‡è‰¯å�‹è€Œä¸�äº¤ï¼Œé�‡è‰¯æœºè€Œä¸�æ�¡ ");
        person.get(5).addStatus("é�™ä»¥ä¿®èº« ä¿­ä»¥å…»å¾· ");
        person.get(5).addStatus("ç§¯ä¸€æ—¶ä¹‹è·¬æ­¥ï¼Œè‡»å�ƒé‡Œä¹‹é�¥ç¨‹ï¼�äº®é¢„ç¥�å�„ä½�å�³å°†å�‚åŠ é«˜è€ƒçš„äº®å�‹é©¬åˆ°æˆ�åŠŸ~ ");
        person.get(5).addStatus("å­¦èµ·äºŽæ€�ï¼Œæ€�æº�äºŽç–‘ï¼Œå°�ç–‘åˆ™å°�è¿›ï¼Œå¤§ç–‘åˆ™å¤§è¿›ã€‚ ");
        person.get(5).addStatus("æ–—èƒ†å°½å‚¨äº¡å›½æ�¨ï¼Œä¹�æ³‰åº”è¯‰æ­¦ä¹¡ä¾¯ã€‚æœ‰äººè¯´ä»–åœ¨æ‘‡æ‘‡æ¬²å� çš„çŽ‹æœ�é‡Œç‹¬åŠ›è‹¦è‹¦æ”¯æŒ�å¤§å±€ï¼Œåœ¨æµ®å�Žçš„ä¸–ä¿—é‡Œå®ˆç�€æ¸…ç´ çš„æœ¬å¿ƒï¼›ä¹Ÿæœ‰äººè¯´ä»–ç”¨å…µè¿‡ç”šï¼Œæ¶ˆè€—å¤§é‡�å›½åŠ›ï¼Œä»¥è‡³äº¡å›½ã€‚");
        person.get(5).addStatus("æ»šæ»šé•¿æ±Ÿä¸œé€�æ°´ï¼ŒæµªèŠ±æ·˜å°½è‹±é›„ã€‚ ");
        person.get(5).addStatus("å‡¡å¤«è¿·å¤±äºŽå½“ä¸‹ï¼Œå�Žæ‚”äºŽè¿‡åŽ»ã€‚åœ£äººè§‰æ‚ŸäºŽå½“ä¸‹ï¼Œè§£è„±äºŽæœªæ�¥ã€‚ ");
        person.get(5).addStatus("å�ˆæ˜¯ä¸€å¹´ä¸œå�—é£Žèµ·ï¼Œå�ˆæ˜¯ä¸€å¹´èµ¤å£�ä¹‹æˆ˜æ—¶ã€‚å¥ å®šä¸‰å›½é¼Žç«‹åŸºç¡€çš„èµ¤å£�ä¹‹æˆ˜ï¼Œä¸€ç›´æ˜¯ä¸‰å›½çˆ±å¥½è€…è®¨è®ºä¹‹çƒ­ç‚¹è¯�é¢˜ã€‚ ");

        person.get(6).addStatus("æ°´å’½æ³¢å£°ï¼Œä¸€æ±Ÿå¤©æ±‰è‹±é›„æ³ªï¼›å±±æ— æ¨µé‡‡ï¼Œå��é‡Œå®šå†›è�‰æœ¨é¦™ã€‚èµµæ´µé¢˜è¯¸è‘›æ­¦ä¾¯å¢“å±±é—¨ ");
        person.get(6).addStatus("åˆ˜ç¦…ï¼šâ€œç›¸çˆ¶ç»ˆæ—¥æ“�ç»ƒå†›å£«ï¼Œä¸�ä¹�å‘³ä¹Žï¼Ÿâ€�å­”æ˜Žé�‚ä¼�é­�ã€‚(æƒŠæ��)(æƒŠæ��)(sbq) ");
        person.get(6).addStatus("ã€�ã€Šä¸‰å›½æ¼”ä¹‰ã€‹å››å��ä¸€å›žã€‘â€œå†›å£«æ�€æ­»åˆ˜ç�®å�Šè”¡å¤«äººï¼ŒäºŽç¦�å›žæŠ¥æ›¹æ“�ï¼Œæ“�é‡�èµ�äºŽç¦�ã€‚ä¾¿ä½¿äººå¾€éš†ä¸­æ�œå¯»å­”æ˜Žå¦»å°�ï¼Œå�´ä¸�çŸ¥åŽ»å�‘ã€‚åŽŸæ�¥å­”æ˜Žå…ˆå·²ä»¤äººæ�¬é€�è‡³ä¸‰æ±Ÿå†…éš�é�¿çŸ£ã€‚æ“�æ·±æ�¨ä¹‹ã€‚â€� å“¼å“¼~ ");
        person.get(6).addStatus("è½¬è‡ªé»„æ‰¿å½¦:å§‘çˆ·å�ˆåŽ»é€†å¤©åŒ—ä¼�äº†ã€‚å½“å¹´æˆ‘å®¶ä¸«å¤´æœ‰ä¸€é˜µç‰¹åˆ«è¿·ç”»åœ°å›¾ã€‚å­”æ˜Žé‚£å°�å­�å°±çˆ±æ‰¾æœˆè‹±çŽ©ï¼Œå¤©å¤©æ�¥è€�å¤«å®¶ã€‚é‚£å¤©ä¸€ä¸‹å­�æŠŠå¢¨æ´’åˆ°åœ°å›¾ä¸Šäº†ï¼Œä¸«å¤´å“­äº†å�Šå¤©ï¼Œè€�å¤«æ€Žä¹ˆå“„éƒ½ä¸�å¥½ä½¿ã€‚å­”æ˜Žæœ€å�Žæ²¡æ‹›äº†ï¼Œæ‹¿èµ·åœ°å›¾è¯´ï¼šâ€œæˆ‘å¼„è„�çš„åœ°æ–¹éƒ½ç»™ä½ æ‰“ä¸‹æ�¥ï¼�â€�è‹±è‹±è¿™æ‰�ç½¢äº†ã€‚ä¿©å°�å­©çŽ°åœ¨æˆ�å®¶äº†ï¼Œè€�å¤«æ‹¿å‡ºåœ°å›¾ï¼Œéš�çº¦çœ‹åˆ°äº”ä¸ˆåŽŸè¿™é‡Œæœ‰å½“å¹´é—ºå¥³çš„æ³ªç—•ã€‚ ");
        person.get(6).addStatus("æŒ¥ç¾½æ‰‡ï¼Œæ•´çº¶å·¾ï¼Œå°‘å¹´éž�é©¬å°˜ã€‚å¦‚ä»Šæ†”æ‚´èµ‹æ‹›é­‚ï¼Œå„’å† å¤šè¯¯èº«ï¼� ");
        person.get(6).addStatus("é�—åº™ä¸¹é�’è�½ï¼Œç©ºå±±è�‰æœ¨é•¿ã€‚çŠ¹é—»è¾žå�Žä¸»ï¼Œä¸�å¤�å�§å�—é˜³ã€‚ ");
        person.get(6).addStatus("å’Œä½ ç»ˆé¡»ä¸€åˆ«ï¼Œç§‹æœˆæ˜¥é£Žæ®‹é›ªâ‹¯â‹¯äººç”Ÿæ€»æ˜¯ä¸€åˆ«ï¼Œå¤©æ¶¯å…±æ­¤æ˜Žæœˆâ‹¯â‹¯ ");
        person.get(6).addStatus("è¯¸ä½�æ‰€çˆ±ä¹‹æœˆè‹±ï¼Œé�žç”ŸäºŽä¹±ä¸–ã€�å«�äºˆå­”æ˜Žã€�ä»¥è²Œä¸‘ï¼ˆçœŸç›¸ä¸�å�¯è€ƒï¼‰å�´æ— æ¯”è�ªæ…§è€Œç•™å��äºŽä¸–ä¹‹æœˆè‹±å�¦ï¼Ÿå�Žä¸–èµ‹äºˆæœˆè‹±å�„ç§�å½¢è±¡ï¼Œå�ˆæœ‰å“ªä¸€ä¸ªçœŸèƒ½ä»£è¡¨æœˆè‹±ä¹‹å…¨è²Œå‘¢â‹¯â‹¯å¤´åƒ�ä¼šç»�å¸¸æ›´æ�¢çš„ï¼Œå¸Œæœ›è¯¸ä½�ä¸�è¦�å› ä¸ºå¤´åƒ�è€ŒæŠ›å¼ƒäº†å¯¹é»„æœˆè‹±è¿™ä¸€å¥‡å¥³å­�çš„å–œçˆ±ã€‚ ");
        person.get(6).addStatus("å­”æ˜Žçš„æ¢¦æƒ³æ˜¯ä¸€ç›�å­”æ˜Žç�¯,ä»–è‡ªå·±æ˜¯é‚£å�—å�¯ä»¥ç‚¹ç‡ƒçš„èœ¡çƒ›ï¼Œåˆ˜å¤‡æ˜¯é‚£ç›�ç¬¼ç½©çƒ­é‡�çš„ç�¯ç½©ï¼Œè€Œæœˆè‹±ï¼Œæ˜¯é‚£æ‰˜èµ·èœ¡çƒ›çš„ä¸�èµ·çœ¼çš„ç«¹æž¶å­�,ç”¨å¥¹é‚£å¥³å­�çš„æ™ºæ…§å’Œå�šå¼ºã€‚ ");

        person.get(7).addStatus("å†�è¿‡å‡ å¤©ï¼Œæƒ³è·Ÿå�¸é©¬åŽ»çœ‹ æ³°å�¦å°¼å…‹å�·ã€‚ã€‚ã€‚ä¸�è¿‡å¸¦ä¸�å¸¦é˜¿æ–—å‘¢ï¼Ÿå��æ­£æ˜¯ä¸�è·Ÿçš‡å�”åŽ»ã€‚ã€‚ã€‚æˆ‘å·²ç„¶æ··ä¹±äº† ");
        person.get(7).addStatus("å‡ºé—¨æºœè¾¾ æƒ³ç�€ç»™å�šçˆ¹å’Œç­–ç­–çƒ§ç‚¹å¦¹çº¸ç¥¨å­�ä»€ä¹ˆçš„è¿‡åŽ» å­°æ–™å´´äº†è„šæˆ�äº†ä¼¤æ®‹äººå£«..å�ªå¥½è¹²å®¶é‡Œæ­»å®…... æ±‚å�Žä½—... ");
        person.get(7).addStatus("æ•…äº‹çš„å¼€å¤´ï¼Œæˆ‘ä»¬å¸¸ä¸�æ˜Žæ‰€ä»¥çš„çˆ±ä¸Šäº†å¯¹æ–¹ï¼Œç»“å°¾ï¼Œä¹Ÿå®žå®žåœ¨åœ¨çš„æ�¨ä¸Šäº†å¯¹æ–¹. æœ‰æ—¶äººç¾¤ä¸­å¤šçœ‹çš„ä¸€çœ¼ï¼Œæˆ–æ˜¯é”™è§‰ï¼Œé•¿æ—¶é—´çš„æ¢¦é­‡.. å›½å¤ªä¹Ÿè®¸æ˜¯çœŸçš„çœ‹é”™äº†å�§.. æ—©å®‰ å»ºä¸š ");
        person.get(7).addStatus("çŸ³å¤´å‰ªå­�å¸ƒã€‚ã€‚ã€‚æˆ‘åœ¨æƒ³ï¼Œçš‡å�”ä¼šå‡ºä»€ä¹ˆï¼Ÿ ");
        person.get(7).addStatus("é™Œä¸ŠèŠ±å¼€ï¼Œå�¯ç¼“ç¼“å½’çŸ£...... ");
        person.get(7).addStatus("ç”˜éœ²å¯ºä¸­ç›¸å¥³å©¿ï¼Œå€Ÿç¦…å ‚äº¦ä½œè“�æ¡¥ï¼Œæ’žé’Ÿå’Œå°šä¸ºåª’ï¼Œå�´å·§æˆ�ç§¦æ™‹ä¹‹å¥½ï¼›é¸³é¸¯å¸�é‡ŒæŒ‰ç”²èƒ„ï¼Œç–‘æ˜¥å®µå�ˆæˆ�èµ¤å£�ï¼ŒæŒ�åˆ€ä¾�å¥³æ— å¿ƒï¼Œä¹Ÿå�¯åŠ©äº‘é›¨ä¹‹å…µã€‚ ");
        person.get(7).addStatus("è‘£å�“æ›¹æ“�çš†çˆ±å¦‡äººã€‚è‘£å�“å® è²‚è�‰æ­»äºŽå�•å¸ƒä¹‹åˆƒï¼Œæ›¹æ“�è¿·é‚¹æ°�å�´é€ƒäºŽå¼ ç»£ä¹‹æ‰‹ã€‚ä½•ä¹Ÿï¼Ÿä¸€è€…å¤±å¿ƒè…¹ç›¸åŠ©ï¼Œä¸€è€…å¾—çŒ›å°†æ­»åŠ›ã€‚å�¯çŸ¥å…´äº¡æˆ�è´¥ï¼Œåœ¨ç”¨äººè€Œä¸�åœ¨å¥½è‰²è€³ã€‚å�´çŽ‹ä¸�ç”¨å­�èƒ¥ï¼Œçºµæ— è¥¿æ–½ä¹Ÿéš¾é�¿å®³ï¼›æ¡“å…¬èƒ½ç”¨ç®¡ä»²ï¼Œè™½å¥½å†…ä¹Ÿèƒ½åˆ¶éœ¸ã€‚ä¸œæ±‰æœ‰ç»�è‰²ä¹‹çš‡å�Žï¼Œå…‰æ­¦äº¦å�¯ä¸­å…´ã€‚èœ€æ±‰æ— å€¾å›½ä¹‹ç¾Žäººï¼Œåˆ˜ç¦…ç«Ÿæˆ�ä¿˜è™�ã€‚æ­¤å�ƒå�¤é£Žæµ�è®ºã€‚ ");
        person.get(7).addStatus("å­™æ�ƒä¸ºæ‹‰æ‹¢åˆ˜å¤‡æŠ—æ›¹è®¾ä¸‹çƒ¤é¸­å®´,å…¶å¦¹ä½œé™ª.\"äº²å’±ä¸€èµ·æŠ—æ›¹å�§~\"åˆ˜å¤‡å¹¶ä¸�æŠ¬å¤´:\"è‘±æ�¡ç»™æˆ‘.\"\"äº²æˆ‘ä»¬ä¸€èµ·æ‰“æ›¹æ“�å¥½ä¸�å¥½å•Š~\"\"å¤§é…±ç»™æˆ‘.\"å¦‚æ˜¯å†�ä¸‰,å­™æ�ƒç»ˆäºŽæ€¥äº†:\"äº²ä½ åˆ°åº•è¦�æ€Žæ ·æ‰�è‚¯è·Ÿæˆ‘ä¸€å�—å„¿æ‰�æ›¹è´¼å˜›~\"åˆ˜å¤‡ä¼¸æ‰‹ä¸€æŒ‡:\"é¸­æž¶ç»™æˆ‘.\"è°�æ–™å­™å°šé¦™é¡¿æ—¶ä¼¼æ�¼è¿˜ç¾žåœ°çº¢äº†è„¸");
        person.get(7).addStatus("åˆšçœ‹å®Œé¸¿é—¨å®´ã€‚å¯¹é«˜ç¥–åˆ˜é‚¦é�žå¥½æ„Ÿå‘€ã€‚å¼ è‰¯å€’æ˜¯è§‰å¾—å‡ åˆ†åƒ�å­”æ˜Žå…ˆç”Ÿå‘¢ã€‚æ™šå®‰å’¯å�„ä½�~ ");

        person.get(8).addStatus("å·´ä¸˜ä¸€åˆ«ç»ˆæ— æœŸï¼Œä»Žæ­¤æ›²è¯¯ä½•äººé¡¾(å�¹æ°”) ");
        person.get(8).addStatus("(â€¾-â€¾\") åˆ˜å¤‡ï¼Œä½ è¿™æ³¼çŒ´~~~:-D ");
        person.get(8).addStatus("å‘¨ç‘œ13å²�å°±ã€‚ã€‚ã€‚ã€‚ã€‚ã€‚Î£( Â° - Â°|||)è¿™æ ·ä¹Ÿèƒ½ä¸­æžªå’© ");
        person.get(8).addStatus("æ–°å¹´å¿«ä¹�~å¤©å¤©æœ‰\"ç‘œ\"(å®³ç¾ž)(å®³ç¾ž)(å®³ç¾ž)è½¬è‡ªå‘¨ç‘œ: å’³å’³ï¼Œä¼¯ç¬¦ï¼Œè¿™ï¼Œå¥½å�§ï¼Œç¥�å¤§å®¶æ–°å¹´å¿«ä¹�~å¹´å¹´æœ‰â€œç‘œâ€�~è½¬è‡ªå­™ç­–:ä¼¯ç¬¦ç¥�å¤§å®¶æ–°å¹´å¿«ä¹�ï¼Œå¸Œæœ›å¤§å®¶éƒ½èƒ½æˆ�ä¸ºä¸€ä¸ªä¸�å–œæ¬¢æ‰“çŒŽçš„ä¼¯ç¬¦ï¼� ");
        person.get(8).addStatus("èµ¤å£�çƒ½çƒŸèµ·ï¼Œæ¬²æ�½äºŒä¹”å…®ï¼Ÿé£Žç�«è¿žçŽ¯è®¡ï¼Œå�Žå®¹ç—›åˆ«ç¦»ã€‚");
        person.get(8).addStatus("æœ‰ç¤¼ç‰©çš„è¯�ï¼Œæ›¿æˆ‘æŽ¥ç�€å“¦ ");
        person.get(8).addStatus("ä¸ºå…ˆä¸»åŸºä¸šéž èº¬å°½ç˜�å‡ è¿‘èˆ�å‘½ï¼Œæ‰�æ™ºè¶…ç¾¤ä¸�è¾“å­”æ˜Žï¼Œå�´è¢«å�Žä¸–ä¼ ä¸ºå¿ƒèƒ¸ç‹­éš˜å¦’è´¤å«‰èƒ½ã€‚ä¸‰æ°”å‘¨ç‘œçŽ°å¦‚ä»Šå·²ç»�å®¶å–»æˆ·æ™“ï¼Œå‘•è¡€è€Œäº¡ä»»å‡­å�Žäººæ¼”ç»Žï¼Œå°�ä¹”è™½ä¸ºå¦¾ï¼Œä¹Ÿä¸�ç¦�è¦�å–‚å‘¨éƒŽé¸£ä¸�å¹³ã€‚ ");
        person.get(8).addStatus("çˆ±å…¬ç‘¾ï¼Œçˆ±å¼¹äººï¼Œçˆ±é»‘æ¡ƒçº¢å¿ƒï¼Œä¹Ÿçˆ±é˜¿çž’AOEï¼Œæˆ‘æ˜¯ç©¿å®‰å…¨è£¤çš„é˜²èµ°å…‰ä¹”ï¼Œå‡ºåŽ‚æ ‡é…�é�¿é›·é’ˆï¼Œé€�ä½ ä¸€é¢—çº¢å¿ƒé‡‘å…‹æ‹‰ä½ å°±èƒ½å­¦ç›–å�”å�–è¡€å•¦~æˆ‘ä¸�æ˜¯è‰²ç›²ä¹”ï¼Œå¼¹è°�è°�çŸ¥é�“ï¼Œæœ‰äº‹å„¿æ›¿æˆ‘æŒ¡ç�€~æŽ¥ç�€å“¦~^_^ ");
        person.get(8).addStatus("åœ¨æ�œç´¢æ¡†è¾“å…¥å¤«å�›çš„å��å­—ï¼Œç«Ÿç„¶æ‰¾åˆ°500+ä¸ªå‘¨ç‘œ188ä¸ªå‘¨å…¬ç‘¾ä»¥å�Šè¢«å�„ç§�ç¬¦å�·ä¿®é¥°çš„å‘¨ç‘œæˆ–å…¬ç‘¾~~~~ä¸»é¡µå�›ç§�ä»¥ä¸ºï¼Œè‹¥é‚£æ—¶å€™ä¹Ÿæœ‰å¦‚æ­¤å¤šçš„å…¬ç‘¾ï¼Œä¸œå�´ä¾¿ä¸�å†�æ˜¯é‚£ä¸ªä¸œå�´äº†å�§^_^ ");
        person.get(8).addStatus("å°�ä¹”åˆ�è§�é€¢ä¸­ç§‹ï¼Œèº«æŠ«çšŽçº±å¿µå�´é’©ã€‚å¥ˆä½•è‹±æ‰�é�­å¤©å¦’ï¼Œå¹¶è’‚å¤�èŠ±éš¾é•¿ä¹…ã€‚ ");
        person.get(8).addStatus("å§�å§�è¯´å…¬ç»©æ˜¯å’Œå…´éœ¸ä¸€èµ·ç»ƒæ°´å†›åŽ»äº†~~");
        person.get(8).addStatus("å§�å¤«~");

        person.get(9).addStatus("è½¬èº«ï¼Œä¸€ç¼•å†·é¦™è¿œï¼Œé€�é›ªæ·±ï¼Œç¬‘æ„�æµ…ã€‚æ�¥ä¸–ä½ æ¸¡æˆ‘ï¼Œå�¯æ„¿ï¼Ÿ ");
        person.get(9).addStatus("å�¤å¾€ä»Šæ�¥ï¼Œè‰¯ç¦½æ‹©æœ¨è€Œæ –ï¼Œè´¤è‡£æ‹©ä¸»è€Œäº‹ï¼Œæœ¬æ— å�¯åŽšé�žï¼Œå�ªå› å…¶æœªé�‡è‰¯ä¸»ï¼Œæ—¶äººè´¬å…¶å��å¤�ï¼Œæ®Šä¸�çŸ¥ï¼Œä¸‰äººæˆ�è™Žï¼Œå�Žä¸–æ�®æ­¤æˆ�è¯´ï¼Œæœªå…�æœ‰å¤±å��é¢‡ã€‚ ");
        person.get(9).addStatus("é©¿å¤–æ–­æ¡¥è¾¹ï¼Œå¯‚å¯žå¼€æ— ä¸»ã€‚å·²æ˜¯é»„æ˜�ç‹¬è‡ªæ„�ï¼Œæ›´ç�€é£Žå’Œé›¨ã€‚æ— æ„�è‹¦äº‰æ˜¥ï¼Œä¸€ä»»ç¾¤èŠ³å¦’ã€‚é›¶è�½æˆ�æ³¥ç¢¾ä½œå°˜ï¼Œå�ªæœ‰é¦™å¦‚æ•…ã€‚");
        person.get(9).addStatus("è½¬æœ±é˜�ï¼Œä½Žç»®æˆ·ï¼Œç…§æ— çœ ã€‚ä¸�åº”æœ‰æ�¨ï¼Œä½•äº‹é•¿å�‘åˆ«æ—¶åœ†ï¼Ÿäººæœ‰æ‚²æ¬¢ç¦»å�ˆï¼Œæœˆæœ‰é˜´æ™´åœ†ç¼ºï¼Œæ­¤äº‹å�¤éš¾å…¨ã€‚ä½†æ„¿äººé•¿ä¹…ï¼Œå�ƒé‡Œå…±å©µå¨Ÿã€‚");
        person.get(9).addStatus("ç©ºæœ‰å€¾å›½å€¾åŸŽè²Œï¼Œå‘½ä¼¼é£˜è��æ— ä¾�ã€‚å¦¾æœ¬æœ‰æƒ…æ€Žå¥ˆæ— ç¼˜ï¼Œæ˜¥èŠ±ç§‹æœˆéš�é£Žé€�ï¼Œå¤šæƒ…è‡ªå�¤ç©ºä½™æ�¨ã€‚");
        person.get(9).addStatus("ä¸­å›½å�¤ä»£å››å¤§ç¾Žå¥³ä¹‹ä¸­ï¼Œå¤§å®¶æœ€çˆ±çš„æ˜¯ä¸�æ˜¯è�‰å„¿å‘¢ï¼Ÿ ");
        person.get(9).addStatus("å¤±ç¤¼äº†~~~~~~\\(^o^)/~ ");

        System.out.println("add status...done");

        person.get(0).addFriend(person.get(1));
        person.get(1).addFriend(person.get(2));
        person.get(2).addFriend(person.get(0));
        person.get(3).addFriend(person.get(4));
        person.get(5).addFriend(person.get(6));
        person.get(6).addFriend(person.get(0));
        person.get(6).addFriend(person.get(1));
        person.get(6).addFriend(person.get(2));
        person.get(6).addFriend(person.get(4));
        person.get(6).addFriend(person.get(7));
        person.get(7).addFriend(person.get(1));
        person.get(8).addFriend(person.get(9));
        person.get(0).addFriend(person.get(8));
        person.get(0).addFriend(person.get(9));
        person.get(0).addFriend(person.get(7));

        System.out.println("add friends...done");

        for(int i=0; i<10; i++)
            person.get(0).likeStatus(person.get(1), 1);
        for(int i=0; i<5; i++)
            person.get(0).likeStatus(person.get(7), 2);
        for(int i=0; i<4; i++)
            person.get(0).likeStatus(person.get(8), 3);
        for(int i=0; i<3; i++)
            person.get(0).likeStatus(person.get(9), 4);
        for(int i=0; i<10; i++) {
            person.get(1).likeStatus(person.get(0), 1);
            person.get(2).likeStatus(person.get(0), 1);
        }
        for(int i=0; i<2; i++) {
            person.get(5).likeStatus(person.get(6), 1);
            person.get(6).likeStatus(person.get(4), 1);
        }
        for(int i=0; i<3; i++) {
            person.get(5).likeStatus(person.get(6), 1);
            person.get(4).likeStatus(person.get(6), 1);
        }
        for(int i=0; i<8; i++) {
            person.get(8).likeStatus(person.get(9), 1);
        }

        System.out.println("like status...done");

    }

    public static void countFriends (ExecutionEngine e, int index) {
        /** 
         * @method countFriends
         * @param ExecutionEngine e, int index
         * @issue update to return int
         * index start from 2. engine should be properly 
         */
        String qstr = "START person=node(" + index +") MATCH (person)-[:FRIEND]-(friend) RETURN person, count(friend)";
        ExecutionResult result = e.execute(qstr);
        System.out.println(result.dumpToString());
    }

    public static void countLikeStatus (ExecutionEngine e, int index) {
        /** 
         * @method countLikeStatus
         * @param ExecutionEngine e, int index
         * @issue update to return int
         * index start from 2. engine should be properly 
         */
        String qstr = "START person=node(" + index +") MATCH (person)-[:STATUS]->(status) WHERE status.LIKE > 0 " +
                "RETURN person, count(status) ";
        ExecutionResult result = e.execute(qstr);
        System.out.println(result.dumpToString());
    }

    public static void countLiked (ExecutionEngine e, int index) {
        /** 
         * @method countLiked
         * @param ExecutionEngine e, int index
         * @issue update to return int
         * index start from 2. engine should be properly 
         */
        String qstr = "START person=node(" + index +") MATCH (person)-[:STATUS]->(status) RETURN person, AVG(status.LIKE)";
        ExecutionResult result = e.execute(qstr);
        System.out.println(result.dumpToString());
    }

    public static void countMaxandMin(ExecutionEngine e, int index) {
        String qstr = "START person=node(" + index +") MATCH (person)-[:STATUS]->(status) " +
                "RETURN person, MAX(status.LIKE)";
        ExecutionResult result = e.execute(qstr);
        System.out.println(result.dumpToString());
    }

    public static void executeNewAgg(int index) {
        ArrayList<String> maxlike = new ArrayList<String>();
        Person p = person.get(index);
        Iterator<Person> i = p.getFriends().iterator();
        while(i.hasNext()){
            Person f = i.next();
            Status s = person.get(person.indexOf(f)).getStatusMaxLike();
            String temp = "Name: " + f.getName() + " -> " + s.getStatusText()
                    + "  " + s.getLike() + "\n";
            maxlike.add(temp);
        }
        System.out.println(maxlike.toString());
    }

    public static void failAgg (ExecutionEngine e, int index) {
        String qstr = "START person=node(" + index +") MATCH (person)-[:FRIEND]-(friend)-[:STATUS]->(status) " +
                "RETURN friend, MAX(status.LIKE)";
        ExecutionResult result = e.execute(qstr);
        System.out.println(result.dumpToString());
    }

    public static void executeAgg(String qstr) {
        ExecutionEngine engine = new ExecutionEngine(graphDb);
        ExecutionResult result = engine.execute(qstr);
        System.out.println(result.dumpToString());
    }

    public static void parseQueryAndExecute(String qstr) {
        if (!qstr.contains("MAXB")) {
            executeAgg(qstr);
        } else {
            int a1 = qstr.indexOf("START"), a2 = qstr.indexOf("MATCH"),
                    a3 = qstr.indexOf("RETURN");
            String s1 = qstr.substring(a1, a2), s2 = qstr.substring(a2, a3),
                    s3 = qstr.substring(a3);
            int index = Integer.parseInt(s1.substring(s1.indexOf("(")+1, s1.indexOf(")")));
            String startnode = s1.substring(s1.indexOf(" ")+1, s1.indexOf("="));
            ArrayList<String> nodes = new ArrayList<String>();
            ArrayList<String> relation = new ArrayList<String>();
            while (s2.contains("(")) {
                String tnode = s2.substring(s2.indexOf("(")+1, s2.indexOf(")"));
                nodes.add(tnode);
                s2 = s2.substring(s2.indexOf(")")+1);
                if (s2.contains("[:")) {
                    String trel = s2.substring(s2.indexOf(":")+1, s2.indexOf("]"));
                    relation.add(trel);
                    s2 = s2.substring(s2.indexOf("]")+1);
                } else break;
            }
            String r1 = s3.substring(s3.indexOf(" ")+1, s3.indexOf(",")),
                    r2 = s3.substring(s3.indexOf("(")+1, s3.indexOf(".")),
                    r22 = s3.substring(s3.indexOf(".")+1, s3.indexOf(")"));
            Person p = person.get(convertNodeIdToIndex(index));
            Iterable<Person> fri = null, friReturn = null;
            ArrayList<String> stat = new ArrayList<String>();
            for (int i=0; i<relation.size(); i++) {
                if (relation.get(i).equals("FRIEND")) {
                    fri = p.getFriends();
                    if (nodes.indexOf(r1) == i+1)
                        friReturn = fri;
                }
                if (relation.get(i).equals("STATUS")) {
                    if (r22.equals("LIKE")){
                        //stat = getMostLikeStatus(fri);
                        Iterator<Person> j = fri.iterator();
                        while(j.hasNext()){
                            Person f = j.next();
                            Status s = person.get(person.indexOf(f)).getStatusMaxLike();
                            String temp = s.getStatusText() + " | " + s.getLike() + "\n";
                            stat.add(temp);
                        }
                    }
                }
            }
            showQueryResult(friReturn, stat);           
            p.getNode().getId();
        }
    }

    public static void showQueryResult(Iterable<Person> r1, ArrayList<String> r2) {
        Iterator<Person> i = r1.iterator();
        int count = 0;
        while(i.hasNext()) {
            Person curr = i.next();
            String str1 = curr.toString();
            String str2 = r2.get(count++);
            System.out.print(str1 + " -> " + str2);
        }
    }

    public static int convertNodeIdToIndex(int id) {
        String name = "";
        Person r = null;
        for (Person p : person) {
            if (p.getNode().getId() == id) {
                r = p;
                break;
            }
        }
        if (r == null)
            throw new NullPointerException("No such person...");
        else
            return person.indexOf(r);
    }
    
    public static ArrayList<Vote> parseWikiVote(String filename) {
        File input = new File(filename);
        ArrayList<Vote> result = new ArrayList<Vote>();
        Scanner sc;
        try {
            sc = new Scanner(input);
            while (sc.hasNextLine()) {
                String line = sc.nextLine();
                if (line.charAt(0) == '#')
                    continue;
                else {
                    String[] nums = line.split("\t");
                    result.add(new Vote(Integer.valueOf(nums[0]), Integer.valueOf(nums[1])));
                }
            }
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
        return result;
    }
    
    public static HashSet<Integer> getUserSet (ArrayList<Vote> votes) {
        HashSet<Integer> result = new HashSet<Integer>();
        for (Vote v : votes) {
            if (!result.contains(v.getFromID()))
                result.add(v.getFromID());
            if (!result.contains(v.getToID()))
                result.add(v.getToID());
        }
        
        return result;
    }

    public static void addPersonsFriendsStatuses() {
    	for (Integer i : getUserSet(parseWikiVote("Wiki-Vote - Copy.txt"))) {
    		person.add(myFM.createPerson(Integer.toString(i), MALE));
    		person.get(person.size()-1).addStatus("User No. " + Integer.toString(i) + " v1");
    		person.get(person.size()-1).addStatus("User No. " + Integer.toString(i) + " v2");
    	}
    	for (Vote v : parseWikiVote("Wiki-Vote - Copy.txt")){
    		String fromid = Integer.toString(v.getFromID());
    		String toid = Integer.toString(v.getToID());
    		int from = 0, to = 0;
    		for (int i=0; i<person.size(); i++) {
    			if (person.get(i).getName().equals(fromid))
    				from = i;
    			if (person.get(i).getName().equals(toid))
    				to = i;    				
    		}
    		person.get(from).addFriend(person.get(to));
    		person.get(from).likeStatus(person.get(to), 1);
    		person.get(from).likeStatus(person.get(to), 2);
    		person.get(from).likeStatus(person.get(to), 2);
    		System.out.println("like...done");
    	}
    }
    
    public static void main(String args[]) {
/*        for (Vote v : parseWikiVote("Wiki-Vote.txt"))
            System.out.println(v);
        for (Integer i : getUserSet(parseWikiVote("Wiki-Vote.txt")))
            System.out.println(i);*/
    	QueryTest myQuery = new QueryTest();
    	addData();
        //addPersonsFriendsStatuses() ;
        int nodeid = 2;
/*        for (Person p : person) {
            if (p.getName() == "30") {
                nodeid = (int)p.getNode().getId();
                break;
            }
        }*/
               
        String qstr = "START person=node(" + nodeid + ") MATCH (person)-[:FRIEND]-(friend)-[:STATUS]->(status) " +
                      "RETURN friend, MAXB(status.LIKE)";
        parseQueryAndExecute(qstr);
//        addData();
//        System.out.println("query...\n");
//        ExecutionEngine engine = new ExecutionEngine(graphDb);
//
//        countFriends (engine, 2);
//        countLikeStatus (engine, 2);
//        countMaxandMin(engine, 2);
//        countLiked(engine, 2);
//        failAgg (engine, 2);
//        //executeNewAgg(0);
//
//        String qstr = "START person=node(2) MATCH (person)-[:FRIEND]-(friend)-[:STATUS]->(status) " +
//                "RETURN friend, MAXB(status.LIKE)";
//        parseQueryAndExecute(qstr);
        System.out.println("\nall done...");
        /*        String qstr = "START n=node(13) MATCH (n)-->(x) RETURN x";
        String qstr = "START n=node(2) MATCH (n)-[:FRIEND]-(f)-[:STATUS]->(s) RETURN f, MAX(s.LIKE)";
        ExecutionResult result = engine.execute(qstr);
        List<String> columns = result.columns();
        System.out.println(result.dumpToString());*/

        //        String qstr = "START n=node(13) MATCH (n)-->(x) RETURN x";
        //        String qstr = "START n=node(2) MATCH (n)-[:STATUS]->(s) RETURN topic, MAX(post.vote)";
        //        ExecutionResult result = engine.execute(qstr);
        //        List<String> columns = result.columns();
        //        System.out.println(result.dumpToString());

    }

}
